.class public Lcom/noshufou/android/su/AppDetailsFragment;
.super Landroid/support/v4/app/ListFragment;
.source "AppDetailsFragment.java"

# interfaces
.implements Landroid/support/v4/app/LoaderManager$LoaderCallbacks;
.implements Lcom/noshufou/android/su/FragmentWithLog;
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/noshufou/android/su/AppDetailsFragment$MoreOptionsPopup;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/support/v4/app/ListFragment;",
        "Landroid/support/v4/app/LoaderManager$LoaderCallbacks",
        "<",
        "Landroid/database/Cursor;",
        ">;",
        "Lcom/noshufou/android/su/FragmentWithLog;",
        "Landroid/view/View$OnClickListener;"
    }
.end annotation


# static fields
.field private static final DETAILS_COLUMN_ALLOW:I = 0x6

.field private static final DETAILS_COLUMN_EXEC_CMD:I = 0x5

.field private static final DETAILS_COLUMN_EXEC_UID:I = 0x4

.field private static final DETAILS_COLUMN_LOGGING:I = 0x8

.field private static final DETAILS_COLUMN_NAME:I = 0x3

.field private static final DETAILS_COLUMN_NOTIFICATIONS:I = 0x7

.field private static final DETAILS_COLUMN_PACKAGE:I = 0x2

.field private static final DETAILS_COLUMN_UID:I = 0x1

.field private static final DETAILS_LOADER:I = 0x1

.field public static final DETAILS_PROJECTION:[Ljava/lang/String; = null

.field private static final LOG_LOADER:I = 0x2


# instance fields
.field mAdapter:Lcom/noshufou/android/su/widget/LogAdapter;

.field private mAllow:I

.field private mAppIcon:Landroid/widget/ImageView;

.field private mAppName:Landroid/widget/TextView;

.field private mAppUidText:Landroid/widget/TextView;

.field private mCommandText:Landroid/widget/TextView;

.field private mDetailsContainer:Landroid/widget/LinearLayout;

.field private mDualPane:Z

.field private mLoggingEnabled:Z

.field private mNotificationsEnabled:Z

.field private mPackageNameText:Landroid/widget/TextView;

.field private mReady:Z

.field private mRequestDetailText:Landroid/widget/TextView;

.field private mShownIndex:J

.field private mStatusIcon:Landroid/widget/ImageView;

.field private mStatusText:Landroid/widget/TextView;

.field private mToggleButton:Landroid/widget/Button;

.field private mUseAppSettings:Z


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 91
    const/16 v0, 0x9

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    .line 92
    const-string v2, "_id"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "uid"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "package"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "name"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "exec_uid"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string v2, "exec_cmd"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    const-string v2, "allow"

    aput-object v2, v0, v1

    const/4 v1, 0x7

    .line 93
    const-string v2, "notifications"

    aput-object v2, v0, v1

    const/16 v1, 0x8

    const-string v2, "logging"

    aput-object v2, v0, v1

    .line 91
    sput-object v0, Lcom/noshufou/android/su/AppDetailsFragment;->DETAILS_PROJECTION:[Ljava/lang/String;

    .line 59
    return-void
.end method

.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const/4 v0, 0x1

    const/4 v2, 0x0

    .line 59
    invoke-direct {p0}, Landroid/support/v4/app/ListFragment;-><init>()V

    .line 63
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppName:Landroid/widget/TextView;

    .line 64
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppIcon:Landroid/widget/ImageView;

    .line 65
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mStatusIcon:Landroid/widget/ImageView;

    .line 66
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mDetailsContainer:Landroid/widget/LinearLayout;

    .line 67
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mPackageNameText:Landroid/widget/TextView;

    .line 68
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppUidText:Landroid/widget/TextView;

    .line 69
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mRequestDetailText:Landroid/widget/TextView;

    .line 70
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mCommandText:Landroid/widget/TextView;

    .line 71
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mStatusText:Landroid/widget/TextView;

    .line 73
    iput-boolean v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mUseAppSettings:Z

    .line 74
    iput-boolean v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mNotificationsEnabled:Z

    .line 75
    iput-boolean v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mLoggingEnabled:Z

    .line 77
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mToggleButton:Landroid/widget/Button;

    .line 82
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    .line 84
    iput-boolean v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mReady:Z

    .line 85
    iput-boolean v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mDualPane:Z

    .line 87
    const/4 v0, -0x1

    iput v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAllow:I

    .line 89
    iput-object v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAdapter:Lcom/noshufou/android/su/widget/LogAdapter;

    .line 59
    return-void
.end method

.method static synthetic access$1(Lcom/noshufou/android/su/AppDetailsFragment;)Z
    .locals 1
    .parameter

    .prologue
    .line 73
    iget-boolean v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mUseAppSettings:Z

    return v0
.end method

.method static synthetic access$2(Lcom/noshufou/android/su/AppDetailsFragment;)Z
    .locals 1
    .parameter

    .prologue
    .line 74
    iget-boolean v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mNotificationsEnabled:Z

    return v0
.end method

.method static synthetic access$3(Lcom/noshufou/android/su/AppDetailsFragment;)Z
    .locals 1
    .parameter

    .prologue
    .line 75
    iget-boolean v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mLoggingEnabled:Z

    return v0
.end method

.method static synthetic access$4(Lcom/noshufou/android/su/AppDetailsFragment;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 73
    iput-boolean p1, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mUseAppSettings:Z

    return-void
.end method

.method static synthetic access$5(Lcom/noshufou/android/su/AppDetailsFragment;)J
    .locals 2
    .parameter

    .prologue
    .line 82
    iget-wide v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    return-wide v0
.end method

.method static synthetic access$6(Lcom/noshufou/android/su/AppDetailsFragment;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 74
    iput-boolean p1, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mNotificationsEnabled:Z

    return-void
.end method

.method static synthetic access$7(Lcom/noshufou/android/su/AppDetailsFragment;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 75
    iput-boolean p1, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mLoggingEnabled:Z

    return-void
.end method

.method private doToggle()V
    .locals 9

    .prologue
    const/4 v8, 0x0

    const/4 v4, 0x1

    .line 257
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v5

    invoke-virtual {v5}, Landroid/support/v4/app/FragmentActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 258
    .local v0, cr:Landroid/content/ContentResolver;
    sget-object v5, Lcom/noshufou/android/su/provider/PermissionsProvider$Apps;->CONTENT_URI:Landroid/net/Uri;

    iget-wide v6, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    invoke-static {v6, v7}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    .line 260
    .local v2, uri:Landroid/net/Uri;
    new-instance v3, Landroid/content/ContentValues;

    invoke-direct {v3}, Landroid/content/ContentValues;-><init>()V

    .line 261
    .local v3, values:Landroid/content/ContentValues;
    const-string v5, "allow"

    iget v6, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAllow:I

    if-ne v6, v4, :cond_0

    const/4 v4, 0x0

    :cond_0
    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v3, v5, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 262
    invoke-virtual {v0, v2, v3, v8, v8}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 265
    invoke-virtual {v3}, Landroid/content/ContentValues;->clear()V

    .line 266
    const-string v4, "date"

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    .line 267
    const-string v4, "type"

    const/4 v5, 0x3

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 268
    sget-object v4, Lcom/noshufou/android/su/provider/PermissionsProvider$Logs;->CONTENT_URI:Landroid/net/Uri;

    iget-wide v5, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    .line 269
    new-instance v1, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    const-class v5, Lcom/noshufou/android/su/service/ResultService;

    invoke-direct {v1, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 270
    .local v1, intent:Landroid/content/Intent;
    const-string v4, "action"

    const/4 v5, 0x2

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 271
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    invoke-virtual {v4, v1}, Landroid/support/v4/app/FragmentActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 272
    return-void
.end method

.method public static newInstance(J)Lcom/noshufou/android/su/AppDetailsFragment;
    .locals 3
    .parameter "index"

    .prologue
    .line 106
    new-instance v1, Lcom/noshufou/android/su/AppDetailsFragment;

    invoke-direct {v1}, Lcom/noshufou/android/su/AppDetailsFragment;-><init>()V

    .line 108
    .local v1, fragment:Lcom/noshufou/android/su/AppDetailsFragment;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 109
    .local v0, args:Landroid/os/Bundle;
    const-string v2, "index"

    invoke-virtual {v0, v2, p0, p1}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    .line 110
    invoke-virtual {v1, v0}, Lcom/noshufou/android/su/AppDetailsFragment;->setArguments(Landroid/os/Bundle;)V

    .line 112
    return-object v1
.end method

.method private setupListView()V
    .locals 8

    .prologue
    const/4 v7, 0x0

    .line 184
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getListView()Landroid/widget/ListView;

    move-result-object v1

    .line 185
    .local v1, list:Landroid/widget/ListView;
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    invoke-virtual {v4}, Landroid/support/v4/app/FragmentActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v0

    .line 187
    .local v0, inflater:Landroid/view/LayoutInflater;
    invoke-virtual {v1, v7}, Landroid/widget/ListView;->setDividerHeight(I)V

    .line 189
    new-instance v4, Lcom/noshufou/android/su/widget/LogAdapter;

    const/4 v5, 0x0

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v6

    invoke-direct {v4, v5, v6, v7}, Lcom/noshufou/android/su/widget/LogAdapter;-><init>(Landroid/database/Cursor;Landroid/content/Context;Z)V

    iput-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAdapter:Lcom/noshufou/android/su/widget/LogAdapter;

    .line 190
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAdapter:Lcom/noshufou/android/su/widget/LogAdapter;

    invoke-virtual {p0, v4}, Lcom/noshufou/android/su/AppDetailsFragment;->setListAdapter(Landroid/widget/ListAdapter;)V

    .line 192
    instance-of v4, v1, Lcom/noshufou/android/su/widget/PinnedHeaderListView;

    if-eqz v4, :cond_0

    .line 193
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAdapter:Lcom/noshufou/android/su/widget/LogAdapter;

    invoke-virtual {v4}, Lcom/noshufou/android/su/widget/LogAdapter;->getDisplaySectionHeadersEnabled()Z

    move-result v4

    if-eqz v4, :cond_0

    move-object v3, v1

    .line 195
    check-cast v3, Lcom/noshufou/android/su/widget/PinnedHeaderListView;

    .line 196
    .local v3, pinnedHeaderListView:Lcom/noshufou/android/su/widget/PinnedHeaderListView;
    const v4, 0x7f030014

    invoke-virtual {v0, v4, v1, v7}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v2

    .line 197
    .local v2, pinnedHeader:Landroid/view/View;
    invoke-virtual {v3, v2}, Lcom/noshufou/android/su/widget/PinnedHeaderListView;->setPinnedHeaderView(Landroid/view/View;)V

    .line 200
    .end local v2           #pinnedHeader:Landroid/view/View;
    .end local v3           #pinnedHeaderListView:Lcom/noshufou/android/su/widget/PinnedHeaderListView;
    :cond_0
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAdapter:Lcom/noshufou/android/su/widget/LogAdapter;

    invoke-virtual {v1, v4}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 201
    return-void
.end method


# virtual methods
.method public clearLog()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 292
    iget-wide v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-eqz v0, :cond_0

    .line 293
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    sget-object v1, Lcom/noshufou/android/su/provider/PermissionsProvider$Logs;->CONTENT_URI:Landroid/net/Uri;

    iget-wide v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    invoke-static {v1, v2, v3}, Landroid/content/ContentUris;->withAppendedId(Landroid/net/Uri;J)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1, v4, v4}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    .line 295
    :cond_0
    return-void
.end method

.method public clearLog(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 287
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->clearLog()V

    .line 288
    return-void
.end method

.method public closeDetails()V
    .locals 3

    .prologue
    .line 298
    iget-boolean v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mDualPane:Z

    if-eqz v2, :cond_0

    .line 299
    invoke-static {}, Lcom/noshufou/android/su/LogFragment;->newInstance()Lcom/noshufou/android/su/LogFragment;

    move-result-object v0

    .line 300
    .local v0, logFragment:Landroid/support/v4/app/Fragment;
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    .line 301
    invoke-virtual {v2}, Landroid/support/v4/app/FragmentActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v1

    .line 302
    .local v1, transaction:Landroid/support/v4/app/FragmentTransaction;
    const v2, 0x7f0a0009

    invoke-virtual {v1, v2, v0}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    .line 303
    const/16 v2, 0x1001

    invoke-virtual {v1, v2}, Landroid/support/v4/app/FragmentTransaction;->setTransition(I)Landroid/support/v4/app/FragmentTransaction;

    .line 304
    invoke-virtual {v1}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    .line 308
    .end local v0           #logFragment:Landroid/support/v4/app/Fragment;
    .end local v1           #transaction:Landroid/support/v4/app/FragmentTransaction;
    :goto_0
    return-void

    .line 306
    :cond_0
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    invoke-static {v2}, Lcom/noshufou/android/su/util/Util;->goHome(Landroid/content/Context;)V

    goto :goto_0
.end method

.method public forget(Landroid/view/View;)V
    .locals 6
    .parameter "view"

    .prologue
    const/4 v5, 0x0

    .line 275
    iget-boolean v2, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mReady:Z

    if-nez v2, :cond_0

    .line 284
    :goto_0
    return-void

    .line 279
    :cond_0
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 280
    .local v0, cr:Landroid/content/ContentResolver;
    sget-object v2, Lcom/noshufou/android/su/provider/PermissionsProvider$Apps;->CONTENT_URI:Landroid/net/Uri;

    iget-wide v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    .line 282
    .local v1, uri:Landroid/net/Uri;
    invoke-virtual {v0, v1, v5, v5}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    .line 283
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->closeDetails()V

    goto :goto_0
.end method

.method public getShownIndex()J
    .locals 2

    .prologue
    .line 116
    iget-wide v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    return-wide v0
.end method

.method public onActivityCreated(Landroid/os/Bundle;)V
    .locals 7
    .parameter "savedInstanceState"

    .prologue
    const-wide/16 v5, 0x0

    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 161
    invoke-super {p0, p1}, Landroid/support/v4/app/ListFragment;->onActivityCreated(Landroid/os/Bundle;)V

    .line 163
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    .line 164
    const v2, 0x7f0a0009

    invoke-virtual {v1, v2}, Landroid/support/v4/app/FragmentActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 163
    check-cast v0, Landroid/widget/FrameLayout;

    .line 165
    .local v0, fragmentContainer:Landroid/widget/FrameLayout;
    if-eqz v0, :cond_0

    .line 166
    iput-boolean v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mDualPane:Z

    .line 169
    :cond_0
    if-eqz p1, :cond_1

    .line 170
    const-string v1, "mShownIndex"

    invoke-virtual {p1, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 171
    const-string v1, "mShownIndex"

    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J

    move-result-wide v1

    iput-wide v1, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    .line 178
    :goto_0
    invoke-direct {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->setupListView()V

    .line 179
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getLoaderManager()Landroid/support/v4/app/LoaderManager;

    move-result-object v1

    invoke-virtual {v1, v3, v4, p0}, Landroid/support/v4/app/LoaderManager;->initLoader(ILandroid/os/Bundle;Landroid/support/v4/app/LoaderManager$LoaderCallbacks;)Landroid/support/v4/content/Loader;

    .line 180
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getLoaderManager()Landroid/support/v4/app/LoaderManager;

    move-result-object v1

    const/4 v2, 0x2

    invoke-virtual {v1, v2, v4, p0}, Landroid/support/v4/app/LoaderManager;->initLoader(ILandroid/os/Bundle;Landroid/support/v4/app/LoaderManager$LoaderCallbacks;)Landroid/support/v4/content/Loader;

    .line 181
    return-void

    .line 172
    :cond_1
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getArguments()Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_2

    .line 173
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getArguments()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "index"

    invoke-virtual {v1, v2, v5, v6}, Landroid/os/Bundle;->getLong(Ljava/lang/String;J)J

    move-result-wide v1

    iput-wide v1, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    goto :goto_0

    .line 175
    :cond_2
    iput-wide v5, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    goto :goto_0
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 1
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    .line 251
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 252
    invoke-direct {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->doToggle()V

    .line 254
    :cond_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "view"

    .prologue
    const/4 v2, 0x0

    .line 213
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v1

    sparse-switch v1, :sswitch_data_0

    .line 231
    :goto_0
    return-void

    .line 215
    :sswitch_0
    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/AppDetailsFragment;->toggle(Landroid/view/View;)V

    goto :goto_0

    .line 218
    :sswitch_1
    invoke-virtual {p0, v2}, Lcom/noshufou/android/su/AppDetailsFragment;->forget(Landroid/view/View;)V

    goto :goto_0

    .line 221
    :sswitch_2
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->clearLog()V

    goto :goto_0

    .line 224
    :sswitch_3
    new-instance v0, Lcom/noshufou/android/su/AppDetailsFragment$MoreOptionsPopup;

    invoke-direct {v0, p0, p1}, Lcom/noshufou/android/su/AppDetailsFragment$MoreOptionsPopup;-><init>(Lcom/noshufou/android/su/AppDetailsFragment;Landroid/view/View;)V

    .line 225
    .local v0, popup:Lcom/noshufou/android/su/AppDetailsFragment$MoreOptionsPopup;
    invoke-virtual {v0}, Lcom/noshufou/android/su/AppDetailsFragment$MoreOptionsPopup;->show()V

    goto :goto_0

    .line 228
    .end local v0           #popup:Lcom/noshufou/android/su/AppDetailsFragment$MoreOptionsPopup;
    :sswitch_4
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    check-cast v1, Lcom/noshufou/android/su/HomeActivity;

    invoke-virtual {v1}, Lcom/noshufou/android/su/HomeActivity;->closeDetails()V

    goto :goto_0

    .line 213
    :sswitch_data_0
    .sparse-switch
        0x7f0a000b -> :sswitch_0
        0x7f0a002b -> :sswitch_1
        0x7f0a002c -> :sswitch_2
        0x7f0a002d -> :sswitch_3
        0x7f0a0031 -> :sswitch_4
    .end sparse-switch
.end method

.method public onCreateLoader(ILandroid/os/Bundle;)Landroid/support/v4/content/Loader;
    .locals 7
    .parameter "id"
    .parameter "args"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/os/Bundle;",
            ")",
            "Landroid/support/v4/content/Loader",
            "<",
            "Landroid/database/Cursor;",
            ">;"
        }
    .end annotation

    .prologue
    const/4 v4, 0x0

    .line 313
    packed-switch p1, :pswitch_data_0

    .line 323
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Unknown Loader: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 315
    :pswitch_0
    new-instance v0, Landroid/support/v4/content/CursorLoader;

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    .line 316
    sget-object v2, Lcom/noshufou/android/su/provider/PermissionsProvider$Apps;->CONTENT_URI:Landroid/net/Uri;

    iget-wide v5, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    invoke-static {v2, v5, v6}, Landroid/content/ContentUris;->withAppendedId(Landroid/net/Uri;J)Landroid/net/Uri;

    move-result-object v2

    .line 317
    sget-object v3, Lcom/noshufou/android/su/AppDetailsFragment;->DETAILS_PROJECTION:[Ljava/lang/String;

    move-object v5, v4

    move-object v6, v4

    .line 315
    invoke-direct/range {v0 .. v6}, Landroid/support/v4/content/CursorLoader;-><init>(Landroid/content/Context;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V

    .line 319
    :goto_0
    return-object v0

    :pswitch_1
    new-instance v0, Landroid/support/v4/content/CursorLoader;

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    .line 320
    sget-object v2, Lcom/noshufou/android/su/provider/PermissionsProvider$Logs;->CONTENT_URI:Landroid/net/Uri;

    iget-wide v5, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    invoke-static {v2, v5, v6}, Landroid/content/ContentUris;->withAppendedId(Landroid/net/Uri;J)Landroid/net/Uri;

    move-result-object v2

    .line 321
    sget-object v3, Lcom/noshufou/android/su/widget/LogAdapter;->PROJECTION:[Ljava/lang/String;

    move-object v5, v4

    move-object v6, v4

    .line 319
    invoke-direct/range {v0 .. v6}, Landroid/support/v4/content/CursorLoader;-><init>(Landroid/content/Context;Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 313
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 7
    .parameter "inflater"
    .parameter "container"
    .parameter "savedInstanceState"

    .prologue
    const/4 v6, 0x0

    .line 128
    if-nez p2, :cond_1

    .line 129
    const/4 v2, 0x0

    .line 156
    :cond_0
    :goto_0
    return-object v2

    .line 131
    :cond_1
    const v3, 0x7f03000a

    invoke-virtual {p1, v3, p2, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v2

    .line 133
    .local v2, view:Landroid/view/View;
    const v3, 0x7f0a001c

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppName:Landroid/widget/TextView;

    .line 134
    const v3, 0x7f0a001b

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppIcon:Landroid/widget/ImageView;

    .line 135
    const v3, 0x7f0a001d

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mStatusIcon:Landroid/widget/ImageView;

    .line 136
    const v3, 0x7f0a002f

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mDetailsContainer:Landroid/widget/LinearLayout;

    .line 137
    const v3, 0x7f0a0020

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mPackageNameText:Landroid/widget/TextView;

    .line 138
    const v3, 0x7f0a0022

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppUidText:Landroid/widget/TextView;

    .line 139
    const v3, 0x7f0a0024

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mRequestDetailText:Landroid/widget/TextView;

    .line 140
    const v3, 0x7f0a0026

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mCommandText:Landroid/widget/TextView;

    .line 141
    const v3, 0x7f0a0028

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mStatusText:Landroid/widget/TextView;

    .line 143
    const v3, 0x7f0a000b

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 144
    const v3, 0x7f0a002b

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 145
    const v3, 0x7f0a002c

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 146
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    const/4 v4, 0x1

    const/4 v5, 0x2

    invoke-static {v3, v4, v5}, Lcom/noshufou/android/su/util/Util;->elitePresent(Landroid/content/Context;ZI)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 147
    const v3, 0x7f0a002d

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    .line 148
    .local v1, moreButton:Landroid/view/View;
    invoke-virtual {v1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 149
    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    .line 151
    .end local v1           #moreButton:Landroid/view/View;
    :cond_2
    const v3, 0x7f0a0031

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 152
    .local v0, closeButton:Landroid/view/View;
    if-eqz v0, :cond_0

    .line 153
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0
.end method

.method public onLoadFinished(Landroid/support/v4/content/Loader;Landroid/database/Cursor;)V
    .locals 9
    .parameter
    .parameter "data"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/support/v4/content/Loader",
            "<",
            "Landroid/database/Cursor;",
            ">;",
            "Landroid/database/Cursor;",
            ")V"
        }
    .end annotation

    .prologue
    .local p1, loader:Landroid/support/v4/content/Loader;,"Landroid/support/v4/content/Loader<Landroid/database/Cursor;>;"
    const/4 v6, 0x0

    const/4 v5, 0x1

    .line 329
    invoke-virtual {p1}, Landroid/support/v4/content/Loader;->getId()I

    move-result v4

    packed-switch v4, :pswitch_data_0

    .line 372
    :goto_0
    return-void

    .line 331
    :pswitch_0
    invoke-interface {p2}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v4

    if-eqz v4, :cond_2

    .line 332
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mDetailsContainer:Landroid/widget/LinearLayout;

    if-eqz v4, :cond_0

    .line 333
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mDetailsContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 335
    :cond_0
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppName:Landroid/widget/TextView;

    const/4 v7, 0x3

    invoke-interface {p2, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 336
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppIcon:Landroid/widget/ImageView;

    .line 337
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v7

    invoke-interface {p2, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v8

    invoke-static {v7, v8}, Lcom/noshufou/android/su/util/Util;->getAppIcon(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v7

    .line 336
    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 338
    const/4 v4, 0x6

    invoke-interface {p2, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    .line 339
    .local v0, allow:I
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mStatusIcon:Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v7

    invoke-static {v7, v0}, Lcom/noshufou/android/su/util/Util;->getStatusIconDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object v7

    invoke-virtual {v4, v7}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 340
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mStatusIcon:Landroid/widget/ImageView;

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 341
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mPackageNameText:Landroid/widget/TextView;

    const/4 v7, 0x2

    invoke-interface {p2, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 342
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAppUidText:Landroid/widget/TextView;

    invoke-interface {p2, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 343
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mRequestDetailText:Landroid/widget/TextView;

    .line 344
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v7

    const/4 v8, 0x4

    invoke-interface {p2, v8}, Landroid/database/Cursor;->getInt(I)I

    move-result v8

    invoke-static {v7, v8, v5}, Lcom/noshufou/android/su/util/Util;->getUidName(Landroid/content/Context;IZ)Ljava/lang/String;

    move-result-object v7

    .line 343
    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 345
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mCommandText:Landroid/widget/TextView;

    const/4 v7, 0x5

    invoke-interface {p2, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 346
    iget-object v7, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mStatusText:Landroid/widget/TextView;

    if-ne v0, v5, :cond_3

    .line 347
    const v4, 0x7f0b0021

    .line 346
    :goto_1
    invoke-virtual {v7, v4}, Landroid/widget/TextView;->setText(I)V

    .line 348
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mToggleButton:Landroid/widget/Button;

    if-eqz v4, :cond_1

    .line 349
    iget-object v7, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mToggleButton:Landroid/widget/Button;

    if-ne v0, v5, :cond_4

    const v4, 0x7f0b001b

    :goto_2
    invoke-virtual {v7, v4}, Landroid/widget/Button;->setText(I)V

    .line 351
    :cond_1
    iput v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAllow:I

    .line 353
    const/4 v4, 0x7

    invoke-interface {p2, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 354
    .local v2, notificationsStr:Ljava/lang/String;
    const/16 v4, 0x8

    invoke-interface {p2, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 355
    .local v1, loggingStr:Ljava/lang/String;
    if-nez v2, :cond_5

    if-nez v1, :cond_5

    .line 356
    iput-boolean v5, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mUseAppSettings:Z

    .line 357
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    invoke-static {v4}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 358
    .local v3, prefs:Landroid/content/SharedPreferences;
    const-string v4, "pref_notifications"

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v4

    iput-boolean v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mNotificationsEnabled:Z

    .line 359
    const-string v4, "pref_logging"

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v4

    iput-boolean v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mLoggingEnabled:Z

    .line 366
    .end local v0           #allow:I
    .end local v1           #loggingStr:Ljava/lang/String;
    .end local v2           #notificationsStr:Ljava/lang/String;
    .end local v3           #prefs:Landroid/content/SharedPreferences;
    :cond_2
    :goto_3
    iput-boolean v5, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mReady:Z

    goto/16 :goto_0

    .line 347
    .restart local v0       #allow:I
    :cond_3
    const v4, 0x7f0b0022

    goto :goto_1

    .line 349
    :cond_4
    const v4, 0x7f0b0019

    goto :goto_2

    .line 361
    .restart local v1       #loggingStr:Ljava/lang/String;
    .restart local v2       #notificationsStr:Ljava/lang/String;
    :cond_5
    iput-boolean v6, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mUseAppSettings:Z

    .line 362
    const-string v4, "1"

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_7

    move v4, v5

    :goto_4
    iput-boolean v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mNotificationsEnabled:Z

    .line 363
    const-string v4, "1"

    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_6

    move v6, v5

    :cond_6
    iput-boolean v6, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mLoggingEnabled:Z

    goto :goto_3

    :cond_7
    move v4, v6

    .line 362
    goto :goto_4

    .line 369
    .end local v0           #allow:I
    .end local v1           #loggingStr:Ljava/lang/String;
    .end local v2           #notificationsStr:Ljava/lang/String;
    :pswitch_1
    iget-object v4, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAdapter:Lcom/noshufou/android/su/widget/LogAdapter;

    invoke-virtual {v4, p2}, Lcom/noshufou/android/su/widget/LogAdapter;->swapCursor(Landroid/database/Cursor;)Landroid/database/Cursor;

    goto/16 :goto_0

    .line 329
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public bridge synthetic onLoadFinished(Landroid/support/v4/content/Loader;Ljava/lang/Object;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    check-cast p1, Landroid/support/v4/content/Loader;

    check-cast p2, Landroid/database/Cursor;

    invoke-virtual {p0, p1, p2}, Lcom/noshufou/android/su/AppDetailsFragment;->onLoadFinished(Landroid/support/v4/content/Loader;Landroid/database/Cursor;)V

    return-void
.end method

.method public onLoaderReset(Landroid/support/v4/content/Loader;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/support/v4/content/Loader",
            "<",
            "Landroid/database/Cursor;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 376
    .local p1, loader:Landroid/support/v4/content/Loader;,"Landroid/support/v4/content/Loader<Landroid/database/Cursor;>;"
    invoke-virtual {p1}, Landroid/support/v4/content/Loader;->getId()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 377
    iget-object v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mAdapter:Lcom/noshufou/android/su/widget/LogAdapter;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/noshufou/android/su/widget/LogAdapter;->swapCursor(Landroid/database/Cursor;)Landroid/database/Cursor;

    .line 379
    :cond_0
    return-void
.end method

.method public onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 4
    .parameter "outState"

    .prologue
    .line 204
    iget-wide v0, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-eqz v0, :cond_0

    .line 205
    const-string v0, "mShownIndex"

    iget-wide v1, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    .line 208
    :cond_0
    invoke-super {p0, p1}, Landroid/support/v4/app/ListFragment;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 209
    return-void
.end method

.method public setShownIndex(J)V
    .locals 3
    .parameter "index"

    .prologue
    const/4 v2, 0x0

    .line 120
    iput-wide p1, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mShownIndex:J

    .line 121
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getLoaderManager()Landroid/support/v4/app/LoaderManager;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1, v2, p0}, Landroid/support/v4/app/LoaderManager;->restartLoader(ILandroid/os/Bundle;Landroid/support/v4/app/LoaderManager$LoaderCallbacks;)Landroid/support/v4/content/Loader;

    .line 122
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getLoaderManager()Landroid/support/v4/app/LoaderManager;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1, v2, p0}, Landroid/support/v4/app/LoaderManager;->restartLoader(ILandroid/os/Bundle;Landroid/support/v4/app/LoaderManager$LoaderCallbacks;)Landroid/support/v4/content/Loader;

    .line 123
    return-void
.end method

.method public toggle(Landroid/view/View;)V
    .locals 4
    .parameter "view"

    .prologue
    const/4 v3, 0x0

    .line 234
    iget-boolean v1, p0, Lcom/noshufou/android/su/AppDetailsFragment;->mReady:Z

    if-nez v1, :cond_0

    .line 247
    :goto_0
    return-void

    .line 238
    :cond_0
    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-static {v1}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 239
    const-string v2, "pref_pin"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 240
    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    const-class v2, Lcom/noshufou/android/su/PinActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 241
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "mode"

    const/4 v2, 0x3

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 242
    invoke-virtual {p0, v0, v3}, Lcom/noshufou/android/su/AppDetailsFragment;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 244
    .end local v0           #intent:Landroid/content/Intent;
    :cond_1
    invoke-direct {p0}, Lcom/noshufou/android/su/AppDetailsFragment;->doToggle()V

    goto :goto_0
.end method
